<?php
// +----------------------------------------------------------------------
// | CatchAdmin [Just Like ～ ]
// +----------------------------------------------------------------------
// | Copyright (c) 2017~{$year} http://catchadmin.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( https://github.com/yanwenwu/catch-admin/blob/master/LICENSE.txt )
// +----------------------------------------------------------------------
// | Author: JaguarJack [ njphper@gmail.com ]
// +----------------------------------------------------------------------
// you should use `$router`
/* @var think\Route $router */
$router->group(function () use($router) {

    // userinfo 路由
    $router->get('userinfos/infos', '\\catchAdmin\\hunqing\\controller\\Userinfos@info');

    $router->resource('userinfo', catchAdmin\hunqing\controller\Userinfo::class);
    // userinfos 路由
    $router->resource('userinfos', catchAdmin\hunqing\controller\Userinfos::class);

    // staffs 路由
     $router->resource('staffs', catchAdmin\hunqing\controller\Staffs::class);
     $router->resource('userinfos/import', '\catchAdmin\hunqing\controller\Userinfos@import');





})->middleware('auth');

$router->post('/addinfo', '\catchAdmin\hunqing\controller\Userinfos@addinfos');
$router->post('/addinfo1', '\catchAdmin\hunqing\controller\Userinfos@addinfos1');

$router->post('userinfos/addinfo', '\\catchAdmin\\hunqing\\controller\\Userinfos@addinfo');
$router->post('/upload', '\catchAdmin\phone\controller\login@image');
